Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1353: Upgrade flutter 3.19.3 #1355

Merged
merged 4 commits into from
Apr 2, 2024
Merged

1353: Upgrade flutter 3.19.3 #1355

merged 4 commits into from
Apr 2, 2024

Conversation

f1sh1918
Copy link
Contributor

@f1sh1918 f1sh1918 commented Mar 20, 2024

Short description

Proposed changes

  • upgrade flutter 3.19.3
  • upgrade dart 3.3.1
  • updated gradle (8.4) to ensure java17 compatibility for some libraries
  • updated circle ci android images (EOL Announcement)
  • upgrade to major package versions as far as possible
  • update android sdk version 34 since its needed for camera
  • fix some deprecated methods in flutter

Side effects

  • There is a warning for Artemis since its discontinued. I didn't face any issues in GraphQL Code generation so far and created an issue for replacing this dev dependency Replace artemis #1352. Please test if Graphql Code generation still works for flutter

Tested on ios, android and also the ci build for ios and android (you can run commit_main)

Testing

  • run flutter upgrade in (/frontend) (dev only)
  • Please test everything properly!! Especially camera like card activation, id card related features (card storage survives after update) and permissions (also reinstall the app on your device to reset permissions)

Resolved issues

Fixes: #1285 maybe also fix # 1265 (update of secure_storage)
resolves #1353

…s as far as possible, update android sdk version since its needed for camera
@@ -770,6 +771,23 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
88929E687A3CA76CCD4D1E20 /* [CP] Copy Pods Resources */ = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was all generated with the update

package_info_plus: ^4.0.1 # for about dialog
mobile_scanner: 3.1.1 # Pinning this version because of https://github.com/juliansteenbakker/mobile_scanner/issues/582
mobile_scanner: ^4.0.1 # Pinning this version because of https://github.com/juliansteenbakker/mobile_scanner/issues/582
Copy link
Contributor Author

@f1sh1918 f1sh1918 Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has to be tested properly. in the issue it was mentioned that it should be fixed with XCode 15 and i updated the ios sdk version in another pr, so we should be fine
related #1351

@f1sh1918 f1sh1918 changed the title 1353: upgrade flutter 3.19.3 1353: Upgrade flutter 3.19.3 Mar 20, 2024
@f1sh1918 f1sh1918 force-pushed the 1353-upgrade-flutter-3.19.3 branch 2 times, most recently from e0e0ee0 to 03e3e34 Compare March 25, 2024 13:06
@@ -40,7 +40,7 @@ class IdCard extends StatelessWidget {
aspectRatio: creditCardAspectRatio,
child: MediaQuery(
// Ignore text scale factor to enforce the same layout on all devices.
data: mediaQueryData.copyWith(textScaleFactor: 1),
data: mediaQueryData.copyWith(textScaler: TextScaler.linear(1)),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecation warning with new flutter version fixed

@f1sh1918 f1sh1918 force-pushed the 1353-upgrade-flutter-3.19.3 branch 6 times, most recently from ef55105 to 16016f6 Compare March 25, 2024 15:53
@f1sh1918 f1sh1918 force-pushed the 1353-upgrade-flutter-3.19.3 branch from 16016f6 to 98a5286 Compare March 25, 2024 16:09
@f1sh1918 f1sh1918 marked this pull request as ready for review March 25, 2024 16:11
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was generated by gradle update

@@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file generated by gradle update

Co-authored-by: Michael Markl <[email protected]>
Copy link
Member

@ztefanie ztefanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me quite long to test this locally as it seems the intellij command does not use the dart version specified in the pubspec.yaml. 🤔

tested on android emulator

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, this jar file should not be commited?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should. this file just changed with gradle update
image

@f1sh1918 f1sh1918 merged commit ca4fc6c into main Apr 2, 2024
1 check passed
@f1sh1918 f1sh1918 deleted the 1353-upgrade-flutter-3.19.3 branch April 2, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PlatformException launching apple maps Upgrade flutter to latest version
3 participants